package scanner;

public class Token {
	private String tokenString;
	private TokenType type;
	
	public Token(String ts, TokenType t)
	{
		setTokenString(ts);
		type = t;
	}

	public String getTokenString() {
		return tokenString;
	}

	public void setTokenString(String tokenString) {
		this.tokenString = tokenString;
	}

	public TokenType getType() {
		return type;
	}

	public void setType(TokenType type) {
		this.type = type;
	}
	
	public String toString()
	{
	    return getTokenString() + ":" + getType();
	}
}
